package com.campusbackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 队伍成员表
 * </p>
 *
 * @author yezi
 * @since 2025-07-26
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode
@TableName("team_members")
@Schema(name = "TeamMembers", description = "队伍成员表")
public class TeamMembers implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "队伍ID")
    private Long teamId;

    @Schema(description = "学生ID")
    private Long studentId;

    @Schema(description = "队员身份：队长、副队长、队员、技术负责人等")
    private String memberRole;

    @Schema(description = "队员评分（满分20分，支持小数点后两位）")
    private BigDecimal score;

    @Schema(description = "加入状态：0-待确认，1-已加入，2-已拒绝，3-已退出")
    private Byte joinStatus;

    @Schema(description = "加入时间")
    private LocalDateTime joinTime;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
